﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="产品理化参数修改.aspx.cs" Inherits="syc.ZhiJian.产品理化参数修改" %>

<head id="Head1" runat="server">
    <title>产品理化参数 修改</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>
    <form id="form1" runat="server">
    <div>
    <asp:Panel ID="Panel1" runat="server" CssClass="panel">
<asp:Button ID="Button_Save" runat="server" Text="保 存" UseSubmitBehavior="false" 
        CssClass="button" onclick="Button_Save_Click"  />
       
<asp:Button ID="Button_Close" runat="server" Text="关 闭" UseSubmitBehavior="false"  Visible="true"
        CssClass="button" OnClientClick="parent.swin2_close();return false;" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                               
                              UpdateCommand="update [产品理化参数]set C=@C,Mn=@Mn,Si=@Si,P=@P,S=@Si,Cr=@Cr,Ni=@Ni,Cu=@Cu,
Mo=@Mo,Al=@Al,V=@V,Bi=@Bi,Sn=@Sn,Pb=@Pb,[As]=@As,Sb=@Sb,抗拉强度=@抗拉强度,
屈服极限=@屈服极限,伸长率=@伸长率 where ID=@ID"                    
                            >
                     </asp:SqlDataSource>       
                <asp:QueryStringParameter DefaultValue="109" Name="入库单ID" 
                    QueryStringField="rukuid" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>

</asp:Panel>
<asp:Panel ID="Panel3" runat="server" CssClass="panel2" >
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
    </asp:Panel>
<div id="wintop" class="wintop" style="display:none;">产品理化参数 修改</div>
<asp:Panel ID="Panel2" runat="server" CssClass="panel" HorizontalAlign="Center">
    <table width="642" border="1" cellspacing="0" cellpadding="0"   style=" border-color:#000000">
  <tr>
    <td colspan="10"><div align="center">化学成分(%)</div></td>
  </tr>
  <tr>
    <td width="83" height="18"><div align="center">炉号</div></td>
    <td width="54"><div align="center">C</div></td>
    <td width="60" colspan="2"><div align="center">Mn</div></td>
    <td width="59"><div align="center">Si</div></td>
    <td width="64"><div align="center">P</div></td>
    <td width="67"><div align="center">S</div></td>
    <td width="78"><div align="center">Cr</div></td>
    <td width="79"><div align="center">Ni</div></td>
    <td width="78"><div align="center">Cu</div></td>
  </tr>
  <tr>
    <td><div align="center">
    <asp:TextBox ID="LuHao0" runat="server" Width="80px"  CssClass="textbox"  style="TEXT-ALIGN:   center"></asp:TextBox>
    
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="C" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="Mn" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Si" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="P" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="S" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Cr" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Ni" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Cu" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">Mo</div></td>
    <td colspan="2"><div align="center">Al</div></td>
    <td><div align="center">V</div></td>
    <td><div align="center">Bi</div></td>
    <td><div align="center">Sn</div></td>
    <td><div align="center">Pb</div></td>
    <td><div align="center">As</div></td>
    <td><div align="center">Sb</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">
      <asp:TextBox ID="Mo" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="Al" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="V" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Bi" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Sn" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Pb" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="As" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="Sb" runat="server" Width="44px" 
            onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" 
            CssClass="textbox"></asp:TextBox>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="5"><div align="center">拉伸试验(纵向)</div></td>
    <td colspan="4"><div align="center">冲击试验</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2"><div align="center">抗拉强度</div></td>
    <td colspan="2"><div align="center">屈伸极限</div></td>
    <td><div align="center">伸长率</div></td>
    <td colspan="2"><div align="center">横向冲击</div></td>
    <td colspan="2"><div align="center">纵向冲击</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="klqd" runat="server" Width="98%"  CssClass="textbox" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ></asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="qsjx" runat="server" Width="98%"  CssClass="textbox" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ></asp:TextBox>
    </div></td>
    <td><div align="center">
      <asp:TextBox ID="scl" runat="server" Width="98%"  CssClass="textbox"  onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ></asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="hx" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" style="TEXT-ALIGN:   center">合格</asp:TextBox>
    </div></td>
    <td colspan="2"><div align="center">
      <asp:TextBox ID="zx" runat="server" Width="98%" ReadOnly="true" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" style="TEXT-ALIGN:   center"
            CssClass="textbox">合格</asp:TextBox>
    </div></td>
  </tr>
  <tr>
    <td width="83" height="18"><div align="center">通径检验</div></td>
    <td colspan="3"><div align="center">静水压试验</div></td>
    <td colspan="2"><div align="center">无损探伤</div></td>
    <td colspan="2"><div align="center">表面检验</div></td>
    <td colspan="2"><div align="center">尺寸</div></td>
  </tr>
  <tr>
    <td width="83" height="18" align="center"><div align="center">
        <asp:TextBox ID="tj" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="3" align="center"><div align="center">
        <asp:TextBox ID="jsy" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="2" align="center"><div align="center">
        <asp:TextBox ID="ws" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="2" align="center"><div align="center">
        <asp:TextBox ID="bm" runat="server" Width="98%" ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
    <td colspan="2" align="center"><div align="center">
        <asp:TextBox ID="cc" runat="server" Width="98%"  ReadOnly="true"  CssClass="textbox" style="TEXT-ALIGN:   center" onkeypress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">合格</asp:TextBox>
        </div></td>
  </tr>
</table>
</asp:Panel>
<asp:Panel ID="Panel4" runat="server" CssClass="panel2">
      
</asp:Panel>
    </div>
    </form>
     <script>
         var textboxs = document.getElementsByTagName("input");
         var i;
         for (i = 0; i < textboxs.length; i++) {
             if (textboxs[i].className == "textbox") {
                 textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
                 textboxs[i].onfocus = function(e) { this.select(); };
             }
             else if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                 textboxs[i].onfocus = function(e) { this.select(); };
             }

         }
         var rows = document.getElementsByTagName("tr");
         for (i = 0; i < rows.length; i++) {

             if (rows[i].className == "grid-row-normal") {
                 rows[i].onmouseover = function() { this.className = "grid-row-bright"; };
                 rows[i].onmouseout = function() { this.className = "grid-row-normal"; };
                 rows[i].onclick = function() { this.firstChild.firstChild.click(); };
             }
         }
         var tds = document.getElementsByTagName("td");
         for (i = 0; i < tds.length; i++) {
             if (tds[i].className == "detailheader") {
                 tds[i].innerHTML = tds[i].innerHTML.replace("*", "<span class=required>*</span>");
             }
         }

         document.body.onkeypress = function(e) {
             if (!e) e = window.event;
             var tag = e.srcElement;
             if (!tag) tag = e.target;
             if (tag.className.toLowerCase() != "textbox") return;
             var i;
             if (e.keyCode == 13) {
                 for (i = 0; i < textboxs.length; i++) {
                     if (tag == textboxs[i]) {
                         if (i < textboxs.length - 1) {
                             textboxs[i + 1].focus();
                         }
                         else {
                             textboxs[textboxs.length].focus();
                         }
                     }
                 }
             }
         };   
</script>
</body>
</html>

